package com.red.star.wechat.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * @Author: Yenan
 * @Description:
 * @Date: Created in 15:43 2018/1/30
 */

@Data
@Table(name = "t_group")
public class Group extends BaseEntity {

    private String groupName;

    /**
     * 品类(沙发、床..)
     */
    private String category;

    /**
     * 成员数
     */
    private Integer members;

    private Integer receptionCount;

    private String mallCode;

    private String management;

    private String mobile;

    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date startTime;

    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date endTime;
    /**
     * 0:接待组 1：联盟组
     */
    private Integer type;

    /**
     * 0:启用,1:停用,2:删除
     */
    private Integer status;

    /**
     * 组头像
     */
    private String avatarUrl;

    /**
     * B端用户集合
     */
    @Transient
    private Set<Fans> bFans;

    @Transient
    private String mallName;

    @Transient
    private String cardNameList;

    /**
     * 首页默认群组
     * 0:不显示，1:显示
     */
    private Integer isHome;

    /**
     * 群组欢语
     */
    private String welcome;

    /**
     * 大厅欢迎语
     */
    private String homeWelcome;


    /**
     * 大厅海报id/名称
     * */
    private Integer homePosterId;

    @Transient
    private List<Poster> posterList;

    /**
     * 群聊海报id/名称
     * */
    private Integer chatPosterId;

    /**
     * 负责人导购ID
     */
    private Integer manager;
}
